package com.lxk.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ShopComExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShopComExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andShopComIdIsNull() {
            addCriterion("shop_com_id is null");
            return (Criteria) this;
        }

        public Criteria andShopComIdIsNotNull() {
            addCriterion("shop_com_id is not null");
            return (Criteria) this;
        }

        public Criteria andShopComIdEqualTo(Integer value) {
            addCriterion("shop_com_id =", value, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdNotEqualTo(Integer value) {
            addCriterion("shop_com_id <>", value, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdGreaterThan(Integer value) {
            addCriterion("shop_com_id >", value, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("shop_com_id >=", value, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdLessThan(Integer value) {
            addCriterion("shop_com_id <", value, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdLessThanOrEqualTo(Integer value) {
            addCriterion("shop_com_id <=", value, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdIn(List<Integer> values) {
            addCriterion("shop_com_id in", values, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdNotIn(List<Integer> values) {
            addCriterion("shop_com_id not in", values, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdBetween(Integer value1, Integer value2) {
            addCriterion("shop_com_id between", value1, value2, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopComIdNotBetween(Integer value1, Integer value2) {
            addCriterion("shop_com_id not between", value1, value2, "shopComId");
            return (Criteria) this;
        }

        public Criteria andShopIdIsNull() {
            addCriterion("shop_id is null");
            return (Criteria) this;
        }

        public Criteria andShopIdIsNotNull() {
            addCriterion("shop_id is not null");
            return (Criteria) this;
        }

        public Criteria andShopIdEqualTo(Integer value) {
            addCriterion("shop_id =", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotEqualTo(Integer value) {
            addCriterion("shop_id <>", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdGreaterThan(Integer value) {
            addCriterion("shop_id >", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("shop_id >=", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdLessThan(Integer value) {
            addCriterion("shop_id <", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdLessThanOrEqualTo(Integer value) {
            addCriterion("shop_id <=", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdIn(List<Integer> values) {
            addCriterion("shop_id in", values, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotIn(List<Integer> values) {
            addCriterion("shop_id not in", values, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdBetween(Integer value1, Integer value2) {
            addCriterion("shop_id between", value1, value2, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotBetween(Integer value1, Integer value2) {
            addCriterion("shop_id not between", value1, value2, "shopId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIsNull() {
            addCriterion("wx_user_id is null");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIsNotNull() {
            addCriterion("wx_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andWxUserIdEqualTo(Integer value) {
            addCriterion("wx_user_id =", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotEqualTo(Integer value) {
            addCriterion("wx_user_id <>", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdGreaterThan(Integer value) {
            addCriterion("wx_user_id >", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wx_user_id >=", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdLessThan(Integer value) {
            addCriterion("wx_user_id <", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("wx_user_id <=", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIn(List<Integer> values) {
            addCriterion("wx_user_id in", values, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotIn(List<Integer> values) {
            addCriterion("wx_user_id not in", values, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdBetween(Integer value1, Integer value2) {
            addCriterion("wx_user_id between", value1, value2, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wx_user_id not between", value1, value2, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andShopComTextIsNull() {
            addCriterion("shop_com_text is null");
            return (Criteria) this;
        }

        public Criteria andShopComTextIsNotNull() {
            addCriterion("shop_com_text is not null");
            return (Criteria) this;
        }

        public Criteria andShopComTextEqualTo(String value) {
            addCriterion("shop_com_text =", value, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextNotEqualTo(String value) {
            addCriterion("shop_com_text <>", value, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextGreaterThan(String value) {
            addCriterion("shop_com_text >", value, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextGreaterThanOrEqualTo(String value) {
            addCriterion("shop_com_text >=", value, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextLessThan(String value) {
            addCriterion("shop_com_text <", value, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextLessThanOrEqualTo(String value) {
            addCriterion("shop_com_text <=", value, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextLike(String value) {
            addCriterion("shop_com_text like", value, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextNotLike(String value) {
            addCriterion("shop_com_text not like", value, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextIn(List<String> values) {
            addCriterion("shop_com_text in", values, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextNotIn(List<String> values) {
            addCriterion("shop_com_text not in", values, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextBetween(String value1, String value2) {
            addCriterion("shop_com_text between", value1, value2, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComTextNotBetween(String value1, String value2) {
            addCriterion("shop_com_text not between", value1, value2, "shopComText");
            return (Criteria) this;
        }

        public Criteria andShopComScoreIsNull() {
            addCriterion("shop_com_score is null");
            return (Criteria) this;
        }

        public Criteria andShopComScoreIsNotNull() {
            addCriterion("shop_com_score is not null");
            return (Criteria) this;
        }

        public Criteria andShopComScoreEqualTo(Integer value) {
            addCriterion("shop_com_score =", value, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreNotEqualTo(Integer value) {
            addCriterion("shop_com_score <>", value, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreGreaterThan(Integer value) {
            addCriterion("shop_com_score >", value, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("shop_com_score >=", value, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreLessThan(Integer value) {
            addCriterion("shop_com_score <", value, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreLessThanOrEqualTo(Integer value) {
            addCriterion("shop_com_score <=", value, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreIn(List<Integer> values) {
            addCriterion("shop_com_score in", values, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreNotIn(List<Integer> values) {
            addCriterion("shop_com_score not in", values, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreBetween(Integer value1, Integer value2) {
            addCriterion("shop_com_score between", value1, value2, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("shop_com_score not between", value1, value2, "shopComScore");
            return (Criteria) this;
        }

        public Criteria andShopComTimeIsNull() {
            addCriterion("shop_com_time is null");
            return (Criteria) this;
        }

        public Criteria andShopComTimeIsNotNull() {
            addCriterion("shop_com_time is not null");
            return (Criteria) this;
        }

        public Criteria andShopComTimeEqualTo(Date value) {
            addCriterion("shop_com_time =", value, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeNotEqualTo(Date value) {
            addCriterion("shop_com_time <>", value, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeGreaterThan(Date value) {
            addCriterion("shop_com_time >", value, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("shop_com_time >=", value, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeLessThan(Date value) {
            addCriterion("shop_com_time <", value, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeLessThanOrEqualTo(Date value) {
            addCriterion("shop_com_time <=", value, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeIn(List<Date> values) {
            addCriterion("shop_com_time in", values, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeNotIn(List<Date> values) {
            addCriterion("shop_com_time not in", values, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeBetween(Date value1, Date value2) {
            addCriterion("shop_com_time between", value1, value2, "shopComTime");
            return (Criteria) this;
        }

        public Criteria andShopComTimeNotBetween(Date value1, Date value2) {
            addCriterion("shop_com_time not between", value1, value2, "shopComTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}